<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Nou job</title>
  <script src="templates/js/codemirror.js" type="text/javascript"></script>
    <script src="templates/js/mirrorframe.js" type="text/javascript"></script>

</head>
<body>
<br />
<? include('menu.php'); ?>

<br />
<h1>Nou JOB </h1>
<form onsubmit="" action="index.php?route=administrar/save" enctype="application/x-www-form-urlencoded" method="post" name="f">
<table style="text-align: left; width: 90%; " border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td>Titol</td>
</tr>
<tr>
<td><input name="title" type="text" value="<?=$job->getTitle();?>" /></td>
</tr>
<tr>
<td>Descripcio</td>
</tr>
<tr>
<td><textarea id="description" cols="60" rows="20" name="description"><?=$job->getDescription();?></textarea></td>
</tr>
<tr>
<td>Codi</td>
</tr>
<tr>
<td><textarea id="code" cols="300" rows="30" name="code">
<?=$job->getCode();?>
</textarea></td>
</tr>
<tr>
<td>
<input  name="code" value="<?=$job->getId();?>" type="hidden"/>
<input  name="id" value="<?=$job->getId();?>" type="hidden"/>
<input name="save" value="Guarda" type="submit" />
</td>
</tr>
</tbody>
</table>
</form>
<br />
<br />

<script type="text/javascript">
  var textarea = document.getElementById('code');
  var editor = new MirrorFrame(CodeMirror.replace(textarea), {
    height: "350px",
    content: textarea.value,
    parserfile: ["tokenizejavascript.js", "parsejavascript.js"],
    stylesheet: "templates/css/jscolors.css",
    path: "templates/js/"
  });
</script>
</body>
</html>
